# 初始编辑器项目（可后续扩展）
add_library(SCION_RENDERING STATIC
    test.cpp # 可选：添加入口点
    Rendering/Essentials/Shader.cpp
    Rendering/Essentials/ShaderLoader.cpp
    Rendering/Essentials/Texture.cpp
    Rendering/Essentials/TextureLoader.cpp
    Rendering/Core/Camera2D.cpp
    Rendering/Core/BatchRenderer.cpp
)

# 包含目录设置
target_include_directories(SCION_RENDERING PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/Rendering/Essentials  # 修复：Rendering 不是 Render
    ${CMAKE_SOURCE_DIR}/scion_utilities  # 添加工具库头文件路径
)

# 依赖窗口和工具
target_link_libraries(SCION_RENDERING
    PRIVATE
        SCION_UTILITIES
        SDL3::SDL3
        glm::glm
        GLAD
        soil2
        spdlog::spdlog
)

# 如果有预编译头，确保包含
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../scion_utilities/hzpch.h")
    target_precompile_headers(SCION_RENDERING PRIVATE "../scion_utilities/hzpch.h")
endif()